package com.gshrms.org.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.gshrms.org.domain.OrgPostGrade;
import org.apache.ibatis.annotations.Mapper;

/**
 * 职等Mapper接口
 * 
 * @author ruoyi
 * @date 2024-10-28
 */
@Mapper
public interface OrgPostGradeMapper extends BaseMapper<OrgPostGrade>
{
    /**
     * 查询职等
     * 
     * @param postGradeId 职等主键
     * @return 职等
     */
    public OrgPostGrade selectOrgPostGradeByPostGradeId(Long postGradeId);

    /**
     * 查询职等列表
     * 
     * @param orgPostGrade 职等
     * @return 职等集合
     */
    public List<OrgPostGrade> selectOrgPostGradeList(OrgPostGrade orgPostGrade);

    /**
     * 新增职等
     * 
     * @param orgPostGrade 职等
     * @return 结果
     */
    public int insertOrgPostGrade(OrgPostGrade orgPostGrade);

    /**
     * 新增职等
     *
     * @param orgPostGrade 职等
     * @return 结果
     */
    public int updateOrgPostGrade(OrgPostGrade orgPostGrade);

    /**
     * 删除职等
     * 
     * @param postGradeId 职等主键
     * @return 结果
     */
    public int deleteOrgPostGradeByPostGradeId(Long postGradeId);

    /**
     * 批量删除职等
     * 
     * @param postGradeIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteOrgPostGradeByPostGradeIds(Long[] postGradeIds);
}
